#include "mainwindow.h"

#include <QApplication>

int main(int argc, char *argv[])
{

    QApplication a(argc, argv);
   // MainWindow w(argc, argv);
    //w.show();

    QLibrary* mainFunDll = new QLibrary("E:/C++_code/dll/dllFunc/build-untitled-Desktop_Qt_5_15_2_MinGW_32_bit-Release/release/untitled.dll");
    if (mainFunDll->load()) {
        //getObj obj = (getObj)mainFunDll->resolve("getDllObj");
        //Untitled* mF = obj();
        //mF->printMsg(QStringLiteral("这是一个DLL调用程序"));
        //mF->VopenWindow(argc,argv);
        //qDebug()<<mF->add(4, 7);

        //dllText dText = (dllText)mainFunDll->resolve("text");
        //qDebug() << QString::fromLocal8Bit(dText());

       // dllPrintInt dPrintInt = (dllPrintInt)mainFunDll->resolve("printInt");
       // qDebug() << dPrintInt();
        openwinfunc dpenwin = (openwinfunc)mainFunDll->resolve("openwin");
        dpenwin(argc,argv);
        dpenwin(argc,argv);
    }




    return a.exec();
}
